<?php
/**
* エラーチェッククラス
**/
require_once( '../system/Class_M_DAO.php' );
class Class_M_COST_TVSP_MELEC extends Class_M_DAO {
	//protected properties begin
	/**
	 *
	 * テーブル名
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	protected $_table  = "M_COST_TVSP_MELEC";
	
	/**
	 *
	 * 主キー名
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	protected $_pkey   = "id";
	
	/**
	 *
	 * ソート順
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	 protected $_order = "id";
	 
	 protected $_cols  = array(
		"materid"     => array(AOKI_VARTYPE_INT),
		"electricid"  => array(AOKI_VARTYPE_INT)
	 );
	
	 protected $_checks  = array(
		"materid"    => array( "EXIST", "NUM" ),
		"electricid" => array( "EXIST", "NUM" )
	 );
	 
	 //maxlength 
	 protected $_maxlens  = array(
		
	 );
	/*
	 public function search($where ,&$page = NULL ){	
	 	
		$sql = "SELECT  b.shop_name, a.*,(select  user_name FROM M_LOGIN where id  = a.u_user) as m_user_name from {$this->_table}  a ";
		$sql =  $sql." INNER JOIN M_SHOP b on a.shop_cd = b.shop_cd";
		return  parent::search($where ,$page ,$sql);
	}
	*/
	
}

?>